function dir = os_dir(path1,path2)
% Function that returns the directory of path1 + path2 correcting for the type of OS

	fsep = filesep;
	dir = strrep([path1,path2],'\',fsep);

end

